/*
 *   This file is part of <open-parametrics>
 *   Copyright (c) 2006-2008 Miguel-Angel Sicilia
 *
 *   open-parametrics is free software: you can redistribute it and/or modify
 *   it under the terms of the Lesser GNU General Public License as
 *   published by the Free Software Foundation, either version 3 of
 *   the License, or (at your option) any later version.
 *
 *   open-parametrics is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with open-parametrics.  If not, see <http://www.gnu.org/licenses/>.
 */

package es.uah.cc.ie.parametrics;


/**
 * Defines the basic interface for a technique to generate CERs from
 * Datasets.
 *
 * 
 * @author Miguel-Angel Sicilia
 */
public abstract class CERGenerator {

 
    /**
     * The label of the CERGenerator.
     */
    private String  _label;


    /**
     * Constructs the CERGenerator.
     */
    public CERGenerator(String label){
        _label = label;
    }

    /**
     * Gets the label of the CERGenerator.
     */
    public String getLabel(){
        return _label;
    }

    /**
     * Generates a CER from the given data set.
     */
     public abstract CostEstimatingRelationship generate(CostDriver[] x,
             Variable y, Dataset ds);

}
